package com.dries.portal.module.pay.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

/**
 * @Description:
 * @Author ZSY
 * @createTime 2020/9/9 13:49
 */
@Data
@ConfigurationProperties(prefix = "wxpay")
public class WxPayProperties {

    @NestedConfigurationProperty
    private Config config = new Config();
    private String notifyUrl;
    private String refundNotifyUrl;

    @Data
    public static class Config {
        private String appId;
        private String appSecret;
        private String mchId;
        private String partnerKey;
        private String certPath;
        private String domain;
    }

}
